<template>
	<view class="drafts px-2 py-1">
		<u-cell v-for="(item, index) in list" :key="index"
			:title="item.name" :label="dateFormat(item.time)"
			@click="$go('/pages/editor/index?id=' + index, null, 'navigateTo', {noAuth: false})"
		></u-cell>
	</view>
</template>

<script>
	import {
		dateFormat
	} from "@/utils/tools.js";
	
	export default {
		name: 'drafts',
		props: {
			list: {
				type: Array,
				default: () => ([])
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			dateFormat,
			a() {
				
			}
		}
	}
</script>

<style lang="scss" scoped>
.drafts{
	
}
</style>